package com.dmx.platform.service;

import java.util.List;

import com.dmx.fw.service.interfaces.Service;
import com.dmx.platform.bean.PriceBean;
import com.dmx.platform.entity.TBaseinfo;
import com.dmx.platform.entity.TDetailinfo;
import com.dmx.platform.entity.TImage;
import com.dmx.platform.entity.TPricePlan;

/**
 *@author: Beni Yang
 *@date:2012-8-18
 *@function:
 */
public interface InformationService extends Service{
	//price plan operate
	public boolean saveOrUpdatePricePlan(List<PriceBean> priceList,Integer ownerId);
	
	public boolean deletePricePlanByOwnerId(Integer ownerId);
	
	//detail info operate
    public void batchDeleteDetailInfoByIds(String[] ids);

    public void deleteDetailInfoById(String id);

    public void saveOrUpdateDetailInfo(TDetailinfo detailInfo);

    public TDetailinfo findDetailInfoById(String id);
    
    public boolean operateDetailInfo(String id,Integer op);
        
    //base info operate
    public void batchDeleteBaseInfoByIds(String[] ids);

    public void deleteBaseInfoById(String id);

    public void saveOrUpdateBaseInfo(TBaseinfo baseInfo);

    public TBaseinfo findBaseInfoById(String id);
    
    public List<TPricePlan> findPricePlanByOwnerId(String id);
    
    //image info operate
    public boolean saveImage(TImage image);
    
    public boolean deleteImage(String imageId);
    
    public TImage getImageById(String imageId);
    
   

}
